#!/usr/bin/python
from subprocess import Popen, PIPE
var = "/home/usman/my-project-perl"
#command = ('git log --pretty=format:"%h %s" %s' % (var))
p = Popen("ls -l '%s'" %var, shell=True, stdout=PIPE, stderr=PIPE)
out, err = p.communicate()
print out,err
